/*
 * Copyright (c) 2014-2016, NVIDIA CORPORATION.  All rights reserved. All
 * information contained herein is proprietary and confidential to NVIDIA
 * Corporation.  Any use, reproduction, or disclosure without the written
 * permission of NVIDIA Corporation is prohibited.
 */
#ifndef _OV10640_SETTING_H_
#define _OV10640_SETTING_H_

#define OV10640_REV1D_ID    0xB3

enum {
   ISC_OV10640_CLK_SRC_OSC24 = 0,
   ISC_OV10640_CLK_SRC_OSC25,
   ISC_OV10640_NUM_CLK_SRC
};

enum {
    ISC_CONFIG_OV10640_RAW12_COMP_1280x800 = 0,
    ISC_CONFIG_OV10640_RAW12_COMP_1280x1080,
    ISC_CONFIG_OV10640_NUM_SENSOR_SETTING
};

/* version 1.2 */
static const unsigned char ov10640_default[] = {
    'w', 3, 0x30, 0x13, 0x01,
    'd',    0x27, 0x10, /* Delay 10m */
    'w', 5, 0x30, 0x0, 0x03,
    0x34,
    0x07,
    'w', 6, 0x30, 0x4, 0x03,
    0x34,
    0x07,
    0x01,
    'w', 3, 0x30, 0x14, 0x03,
    'd',    0x03, 0xe8, /* Delay 1m to stabilize analog PLL */
    'w', 3, 0x30, 0x23, 0x05,
    'w', 4, 0x30, 0x32, 0x34,
    0xfb,
    'w', 9, 0x30, 0x3A, 0x04,
    0x7f,
    0xfe,
    0x19,
    0xd7,
    0x09,
    0x78,
    'w', 3, 0x30, 0x42, 0x05,
    'w', 16, 0x30, 0x54, 0x00,
    0x0f,
    0x01,
    0xff,
    0xbf,
    0x44,
    0x02,
    0x00,
    0x30,
    0x1d,
    0x16,
    0x18,
    0xf9,
    0xf0,
    'w', 24, 0x30, 0x74, 0x00,
    0x00,
    0x00,
    0x40,
    0x05,
    0x07,
    0x03,
    0xff,
    0x05,
    0x08,
    0x03,
    0xc0,
    0x05,
    0xc8,
    0x03,
    0xd0,
    0x00,
    0x00,
    0x00,
    0x00,
    0x00,
    0x40,
    'w', 4, 0x30, 0x8C, 0x03,
    0x92,
    'w', 5, 0x30, 0x8F, 0x10,
    0x04,
    0x0c,
    'w', 3, 0x30, 0x94, 0xa5,
    'w', 3, 0x30, 0xA3, 0x08,
    'w', 16, 0x30, 0xA5, 0x78,
    0x40,
    0x78,
    0x80,
    0x78,
    0xe0,
    0x79,
    0xc0,
    0x03,
    0x80,
    0x80,
    0xff,
    0x3f,
    0x22,
    'w', 3, 0x30, 0xB9, 0x22,
    'w', 16, 0x30, 0xBB, 0x00,
    0x00,
    0x00,
    0x00,
    0x00,
    0x00,
    0x00,
    0x00,
    0x00,
    0x80,
    0x00,
    0x80,
    0x00,
    0x80,
    'w', 6, 0x30, 0xE6, 0x04,
    0x4c,
    0x04,
    0x4c,
    'w', 3, 0x30, 0xE9, 0x05,
    'w', 3, 0x30, 0xEB, 0x00,
    'w', 7, 0x30, 0xEB, 0x04,
    0x01,
    0x5a,
    0x01,
    0x80,
    'w', 3, 0x30, 0xF1, 0x5a,
    'w', 7, 0x30, 0xFA, 0x06,
    0x06,
    0x80,
    0x02,
    0x93,
    'w', 5, 0x31, 0x19, 0x45,
    0x01,
    0x4a,
    'w', 3, 0x31, 0x1c, 0x0, // VSYNC_WIDTH_LINE_H
    'w', 3, 0x31, 0x1d, 0x9, // VSYNC_WIDTH_LINE_L
    'w', 3, 0x31, 0x1E, 0x5, // VSYNC_WIDTH_PIXEL_H
    'w', 3, 0x31, 0x1F, 0x6F, // VSYNC_WIDTH_PIXEL_L
    'w', 5, 0x31, 0x20, 0x00,
    0x01,
    0x00,
    'w', 3, 0x31, 0x24, 0x10,
    'w', 5, 0x31, 0x27, 0x63,
    0xc0,
    0x00,
    'w', 3, 0x31, 0x32, 0x24,
    'w', 3, 0x31, 0x3F, 0x80,
    'w', 3, 0x31, 0xBE, 0x01, // 12bit mode; changed from default 0, 10 bit mode
    'w', 5, 0x31, 0x33, 0xb7, // combine threshold for 12 bit mode
    0xca,
    0xcc,
    'w', 3, 0x32, 0x8A, 0x01,
    'w', 3, 0x32, 0x8A, 0x02,
    'w', 3, 0x32, 0x91, 0x03,
    'w', 130, 0x32, 0x96, 0x3f,
    0x3f,
    0x3f,
    0x32,
    0x32,
    0x3f,
    0x3f,
    0x3f,
    0x3f,
    0x20,
    0x11,
    0xe,
    0xe,
    0x13,
    0x24,
    0x3f,
    0x2f,
    0xc,
    0x6,
    0x3,
    0x3,
    0x7,
    0xf,
    0x36,
    0x22,
    0x7,
    0x1,
    0x0,
    0x0,
    0x2,
    0xa,
    0x28,
    0x22,
    0x7,
    0x1,
    0x0,
    0x0,
    0x3,
    0xa,
    0x2a,
    0x31,
    0xd,
    0x7,
    0x4,
    0x4,
    0x8,
    0x11,
    0x3a,
    0x3f,
    0x22,
    0x13,
    0x10,
    0x10,
    0x16,
    0x29,
    0x3f,
    0x3f,
    0x3f,
    0x3f,
    0x38,
    0x38,
    0x3f,
    0x3f,
    0x3f,
    0x16,
    0x16,
    0x16,
    0x16,
    0x16,
    0x16,
    0x16,
    0x16,
    0x16,
    0x1a,
    0x1a,
    0x1a,
    0x1a,
    0x1a,
    0x1a,
    0x16,
    0x16,
    0x1a,
    0x1d,
    0x1d,
    0x1d,
    0x1d,
    0x1a,
    0x16,
    0x16,
    0x1a,
    0x1d,
    0x20,
    0x20,
    0x1d,
    0x1a,
    0x16,
    0x16,
    0x1a,
    0x1d,
    0x20,
    0x20,
    0x1d,
    0x1a,
    0x16,
    0x16,
    0x1a,
    0x1d,
    0x1d,
    0x1d,
    0x1d,
    0x1a,
    0x16,
    0x16,
    0x1a,
    0x1a,
    0x1a,
    0x1a,
    0x1a,
    0x1a,
    0x16,
    0x16,
    0x16,
    0x16,
    0x16,
    0x16,
    0x16,
    0x16,
    0x16,
    'w', 130, 0x33, 0x16, 0x17,
    0x18,
    0x19,
    0x1a,
    0x1a,
    0x19,
    0x1a,
    0x19,
    0x19,
    0x19,
    0x1b,
    0x1b,
    0x1b,
    0x1b,
    0x1a,
    0x1a,
    0x19,
    0x1b,
    0x1d,
    0x1f,
    0x1f,
    0x1d,
    0x1c,
    0x1a,
    0x1b,
    0x1c,
    0x1f,
    0x20,
    0x20,
    0x1f,
    0x1c,
    0x1b,
    0x1b,
    0x1c,
    0x1f,
    0x20,
    0x20,
    0x1e,
    0x1c,
    0x1a,
    0x19,
    0x1a,
    0x1d,
    0x1e,
    0x1e,
    0x1c,
    0x1b,
    0x19,
    0x17,
    0x17,
    0x1a,
    0x1a,
    0x1b,
    0x1a,
    0x16,
    0x15,
    0x15,
    0x15,
    0x18,
    0x18,
    0x19,
    0x18,
    0x15,
    0x14,
    0x3f,
    0x3f,
    0x3f,
    0x32,
    0x32,
    0x3f,
    0x3f,
    0x3f,
    0x3f,
    0x20,
    0x11,
    0xe,
    0xe,
    0x14,
    0x24,
    0x3f,
    0x28,
    0xc,
    0x6,
    0x3,
    0x3,
    0x7,
    0xf,
    0x36,
    0x1d,
    0x7,
    0x1,
    0x0,
    0x0,
    0x2,
    0xa,
    0x28,
    0x1d,
    0x7,
    0x1,
    0x0,
    0x0,
    0x2,
    0xa,
    0x28,
    0x2a,
    0xd,
    0x7,
    0x4,
    0x4,
    0x7,
    0x11,
    0x38,
    0x3f,
    0x22,
    0x13,
    0x10,
    0x10,
    0x16,
    0x29,
    0x3f,
    0x3f,
    0x3f,
    0x3f,
    0x38,
    0x38,
    0x3f,
    0x3f,
    0x3f,
    'w', 130, 0x33, 0x96, 0x16,
    0x16,
    0x16,
    0x16,
    0x16,
    0x16,
    0x16,
    0x16,
    0x16,
    0x1a,
    0x1a,
    0x1a,
    0x1a,
    0x1a,
    0x1a,
    0x16,
    0x16,
    0x1a,
    0x1d,
    0x1d,
    0x1d,
    0x1d,
    0x1a,
    0x16,
    0x16,
    0x1a,
    0x1d,
    0x20,
    0x20,
    0x1d,
    0x1a,
    0x16,
    0x16,
    0x1a,
    0x1d,
    0x20,
    0x20,
    0x1d,
    0x1a,
    0x16,
    0x16,
    0x1a,
    0x1d,
    0x1d,
    0x1d,
    0x1d,
    0x1a,
    0x16,
    0x16,
    0x1a,
    0x1a,
    0x1a,
    0x1a,
    0x1a,
    0x1a,
    0x16,
    0x16,
    0x16,
    0x16,
    0x16,
    0x16,
    0x16,
    0x16,
    0x16,
    0x18,
    0x19,
    0x19,
    0x1a,
    0x1b,
    0x19,
    0x18,
    0x16,
    0x19,
    0x19,
    0x1b,
    0x1b,
    0x1c,
    0x1b,
    0x19,
    0x18,
    0x1a,
    0x1c,
    0x1d,
    0x1f,
    0x1f,
    0x1d,
    0x1b,
    0x19,
    0x1b,
    0x1c,
    0x1f,
    0x20,
    0x20,
    0x1f,
    0x1c,
    0x1b,
    0x1b,
    0x1c,
    0x1f,
    0x20,
    0x20,
    0x1e,
    0x1b,
    0x19,
    0x1a,
    0x1b,
    0x1d,
    0x1e,
    0x1d,
    0x1c,
    0x1b,
    0x1a,
    0x17,
    0x17,
    0x1a,
    0x1a,
    0x1a,
    0x1a,
    0x15,
    0x15,
    0x16,
    0x16,
    0x18,
    0x18,
    0x17,
    0x18,
    0x15,
    0x16,
    'w', 10, 0x34, 0x1d, 0x4,
    0xc2,
    0x5,
    0xa6,
    0x4,
    0xc2,
    0x2,
    0xd4,
    'w', 3, 0x34, 0x40, 0x04,
    'w', 3, 0x34, 0x44, 0x28,
    'w', 3, 0x34, 0x4E, 0x2c,
    'w', 3, 0x34, 0x57, 0x33,
    'w', 3, 0x34, 0x5E, 0x38,
    'w', 3, 0x34, 0x61, 0xa8,
    'w', 255, 0x60, 0x0, 0xc1,
    0xb9,
    0xba,
    0xa4,
    0xb5,
    0xa0,
    0x82,
    0xa7,
    0xb7,
    0x5c,
    0x9e,
    0xc0,
    0xd2,
    0x33,
    0xcc,
    0xde,
    0xc1,
    0xab,
    0xb7,
    0x00,
    0x00,
    0x00,
    0x00,
    0x00,
    0x00,
    0x00,
    0x00,
    0x00,
    0x00,
    0xc5,
    0x54,
    0x9c,
    0x94,
    0x90,
    0x2a,
    0x61,
    0xd2,
    0xcc,
    0x02,
    0x35,
    0xb1,
    0xb2,
    0xb3,
    0xd2,
    0xd3,
    0x0a,
    0x31,
    0xcc,
    0x05,
    0xc4,
    0xd2,
    0xce,
    0x17,
    0xcf,
    0x1d,
    0xd0,
    0x23,
    0xd2,
    0xbc,
    0xcc,
    0x51,
    0xc5,
    0xd2,
    0x00,
    0x2b,
    0xcc,
    0x09,
    0xd2,
    0x1a,
    0xcc,
    0xeb,
    0x12,
    0x2a,
    0xba,
    0x56,
    0xd3,
    0x27,
    0x54,
    0xd4,
    0xc1,
    0x26,
    0xd2,
    0x01,
    0xd3,
    0x2f,
    0x27,
    0x08,
    0x1a,
    0xcc,
    0xd9,
    0x12,
    0x2c,
    0x11,
    0x60,
    0x50,
    0xc2,
    0xb9,
    0xa5,
    0xb5,
    0xa0,
    0x82,
    0x5c,
    0xd4,
    0xc1,
    0xd4,
    0xc1,
    0xd3,
    0x01,
    0x7c,
    0x74,
    0x00,
    0x2a,
    0x61,
    0xd2,
    0xcc,
    0xde,
    0xc6,
    0xd2,
    0xcc,
    0x02,
    0x35,
    0xd3,
    0x0f,
    0x31,
    0xcc,
    0x05,
    0xc5,
    0xd2,
    0xbb,
    0xcc,
    0x17,
    0xd2,
    0xbd,
    0xcc,
    0x51,
    0xc6,
    0xd2,
    0x2b,
    0xcc,
    0x09,
    0xd2,
    0x1a,
    0xcc,
    0xeb,
    0x71,
    0x12,
    0x2a,
    0xd3,
    0x24,
    0x00,
    0x00,
    0x70,
    0xca,
    0x26,
    0xd2,
    0x01,
    0xd3,
    0x2f,
    0x27,
    0x08,
    0x1a,
    0x12,
    0xcc,
    0xd9,
    0x60,
    0x2c,
    0x11,
    0x50,
    0x00,
    0x00,
    0xc0,
    0xb9,
    0xa3,
    0xb5,
    0xb5,
    0x00,
    0xa0,
    0x82,
    0x5c,
    0xd4,
    0xa6,
    0x9d,
    0xd3,
    0x34,
    0xb0,
    0xb7,
    0x00,
    0xd3,
    0x0a,
    0xd3,
    0x10,
    0x9c,
    0x94,
    0x90,
    0xc8,
    0xba,
    0x7c,
    0x74,
    0x00,
    0x2a,
    0x61,
    0x00,
    0xd2,
    0xcc,
    0xde,
    0xc4,
    0xd2,
    0xcc,
    0x02,
    0x35,
    0xd2,
    0xcc,
    0x14,
    0xd3,
    0x09,
    0x31,
    0xd2,
    0xcc,
    0x05,
    0xd2,
    0xbb,
    0xcc,
    0x19,
    0xd2,
    0xbe,
    0xce,
    0x51,
    0xcf,
    0x54,
    0xd0,
    0x58,
    0xd3,
    0x01,
    0x2b,
    0xcc,
    0x09,
    0xd2,
    0xd9,
    0xd3,
    0xda,
    0xd7,
    0x1a,
    0xcc,
    0xeb,
    0x12,
    0xd4,
    0xaf,
    0x27,
    0x00,
    0xd2,
    0xd3,
    0x3b,
    0xd9,
    'w', 222, 0x60, 0xFD, 0xe0,
    0xda,
    0xe4,
    0x1a,
    0x12,
    0xcc,
    0xd9,
    0x60,
    0x10,
    0x2c,
    0x5d,
    0xd3,
    0x0a,
    0x5c,
    0x01,
    0x50,
    0x11,
    0xd6,
    0xb7,
    0xb9,
    0xba,
    0xaf,
    0xdc,
    0xcb,
    0xc3,
    0xb9,
    0xa4,
    0xb5,
    0x5c,
    0x12,
    0x2a,
    0x61,
    0xd2,
    0xcc,
    0xe2,
    0x35,
    0xc7,
    0xd2,
    0x31,
    0xcc,
    0x05,
    0xc6,
    0xbb,
    0xd2,
    0xcc,
    0x17,
    0xd2,
    0xbe,
    0xcc,
    0x51,
    0xc7,
    0xd2,
    0xcc,
    0x09,
    0xb4,
    0xb7,
    0x94,
    0xd2,
    0x12,
    0x26,
    0x42,
    0x46,
    0x42,
    0xd3,
    0x20,
    0x27,
    0x00,
    0x1a,
    0xcc,
    0xd9,
    0x60,
    0x2c,
    0x11,
    0x40,
    0x50,
    0xb8,
    0x90,
    0xd5,
    0x00,
    0xba,
    0x00,
    0x00,
    0x00,
    0x00,
    0x00,
    0x00,
    0xaa,
    0xb7,
    0x00,
    0x00,
    0x00,
    0x00,
    0xa6,
    0xb7,
    0x00,
    0xd5,
    0x00,
    0x71,
    0xd3,
    0x3e,
    0xba,
    0x00,
    0x00,
    0x00,
    0x00,
    0xd3,
    0x10,
    0x70,
    0x00,
    0x00,
    0x00,
    0x00,
    0xd5,
    0xba,
    0xb0,
    0xb7,
    0x00,
    0x9d,
    0xd3,
    0x0a,
    0x9d,
    0x9d,
    0xd3,
    0x10,
    0x9c,
    0x94,
    0x90,
    0xc8,
    0xba,
    0xd2,
    0x30,
    0xd5,
    0x00,
    0xba,
    0xb0,
    0xb7,
    0x00,
    0x9d,
    0xd3,
    0x0a,
    0x9d,
    0x9d,
    0xd3,
    0x10,
    0x9c,
    0x94,
    0x90,
    0xc8,
    0xba,
    0xd5,
    0x00,
    0xba,
    0xb0,
    0xb7,
    0x00,
    0x9d,
    0xd3,
    0x0a,
    0x9d,
    0x9d,
    0xd3,
    0x10,
    0x9c,
    0x94,
    0x90,
    0xc9,
    0xba,
    0xd5,
    0x00,
    0x00,
    0x1a,
    0x12,
    0xcc,
    0xeb,
    0xd2,
    0xd5,
    0x00,
    0x00,
    0x1a,
    0x12,
    0xcc,
    0xeb,
    0xd2,
    0x1a,
    0x12,
    0xcc,
    0xeb,
    0xd2,
    0x1a,
    0x12,
    0xcc,
    0xeb,
    0xd2,
    0xd5,
    0x00,
    0x00,
    0x1a,
    0xcc,
    0xf0,
    0x12,
    0xd2,
    0xd5,
    0x00,
    0x00,
    0x1a,
    0xcc,
    0xf0,
    0x12,
    0xd2,
    0x1a,
    0xcc,
    0xf0,
    0x12,
    0xd2,
    0x1a,
    0xcc,
    0xf0,
    0x12,
    0xd2,
    0xd5,
    'w', 255, 0x64, 0x0, 0x00,
    0x08,
    0x00,
    0xff,
    0x04,
    0x61,
    0x04,
    0x70,
    0x00,
    0xff,
    0x05,
    0x14,
    0x04,
    0x70,
    0x05,
    0x74,
    0x00,
    0xff,
    0x05,
    0x54,
    0x04,
    0x30,
    0x05,
    0x44,
    0x05,
    0x47,
    0x00,
    0xff,
    0x04,
    0x31,
    0x04,
    0x30,
    0x00,
    0xff,
    0x04,
    0x20,
    0x05,
    0x06,
    0x00,
    0xff,
    0x08,
    0x29,
    0x08,
    0x30,
    0x00,
    0xff,
    0x08,
    0x29,
    0x08,
    0x30,
    0x06,
    0x20,
    0x07,
    0x00,
    0x08,
    0x3f,
    0x00,
    0xff,
    0x08,
    0x29,
    0x08,
    0x35,
    0x06,
    0x10,
    0x07,
    0x00,
    0x08,
    0x3f,
    0x00,
    0xff,
    0x08,
    0x29,
    0x08,
    0x3a,
    0x06,
    0x00,
    0x07,
    0x00,
    0x08,
    0x3f,
    0x00,
    0xff,
    0x06,
    0x00,
    0x07,
    0x05,
    0x01,
    0xaf,
    0x01,
    0x0f,
    0x01,
    0x90,
    0x01,
    0xc8,
    0x00,
    0xff,
    0x01,
    0xac,
    0x01,
    0x0c,
    0x01,
    0x90,
    0x01,
    0xe8,
    0x00,
    0xff,
    0x01,
    0xad,
    0x01,
    0x0d,
    0x01,
    0x90,
    0x01,
    0xe8,
    0x00,
    0xff,
    0x01,
    0xae,
    0x01,
    0x0e,
    0x01,
    0x90,
    0x01,
    0xe8,
    0x00,
    0xff,
    0x01,
    0xb0,
    0x01,
    0xb1,
    0x01,
    0xb2,
    0x01,
    0xb3,
    0x01,
    0xb4,
    0x01,
    0xb5,
    0x01,
    0xb6,
    0x01,
    0xb7,
    0x01,
    0xb8,
    0x01,
    0xb9,
    0x01,
    0xba,
    0x01,
    0xbb,
    0x01,
    0xbc,
    0x01,
    0xbd,
    0x01,
    0xbe,
    0x01,
    0xbf,
    0x01,
    0xc0,
    0x00,
    0xff,
    0x06,
    0x00,
    0x01,
    0xf6,
    0x00,
    0xff,
    0x06,
    0x10,
    0x01,
    0xf6,
    0x06,
    0x00,
    0x00,
    0xff,
    0x06,
    0x20,
    0x01,
    0xf6,
    0x06,
    0x00,
    0x00,
    0xff,
    0x04,
    0x31,
    0x04,
    0x30,
    0x01,
    0x20,
    0x01,
    0x31,
    0x01,
    0x32,
    0x01,
    0x33,
    0x01,
    0x34,
    0x01,
    0x35,
    0x01,
    0x36,
    0x01,
    0x37,
    0x01,
    0x38,
    0x01,
    0x39,
    0x01,
    0x3a,
    0x01,
    0x3b,
    0x01,
    0x3c,
    0x01,
    0x3d,
    0x01,
    0x3e,
    0x01,
    0x3f,
    0x02,
    0xa0,
    0x00,
    0xff,
    0x04,
    0x31,
    0x04,
    0x30,
    0x01,
    0x00,
    0x01,
    0x11,
    0x01,
    0x12,
    0x01,
    0x13,
    0x01,
    0x14,
    0x01,
    0x15,
    0x01,
    0x16,
    0x01,
    0x17,
    0x01,
    0x18,
    0x01,
    0x19,
    0x01,
    0x1a,
    0x01,
    0x1b,
    0x01,
    'w', 243, 0x64, 0xFD, 0x1c,
    0x01,
    0x1d,
    0x01,
    0x1e,
    0x01,
    0x1f,
    0x02,
    0xa0,
    0x00,
    0xff,
    0x03,
    0x0b,
    0x05,
    0x86,
    0x00,
    0x00,
    0x05,
    0x06,
    0x00,
    0x04,
    0x05,
    0x04,
    0x00,
    0x04,
    0x05,
    0x00,
    0x05,
    0x08,
    0x03,
    0x9a,
    0x05,
    0x86,
    0x00,
    0x00,
    0x05,
    0x06,
    0x00,
    0x01,
    0x05,
    0x04,
    0x00,
    0x04,
    0x05,
    0x00,
    0x05,
    0x08,
    0x03,
    0x99,
    0x05,
    0x06,
    0x00,
    0x00,
    0x05,
    0x04,
    0x00,
    0x04,
    0x05,
    0x00,
    0x05,
    0x08,
    0x03,
    0x98,
    0x05,
    0x06,
    0x00,
    0x00,
    0x05,
    0x04,
    0x00,
    0x04,
    0x05,
    0x00,
    0x05,
    0x08,
    0x03,
    0x97,
    0x05,
    0x06,
    0x05,
    0x04,
    0x00,
    0x04,
    0x05,
    0x00,
    0x05,
    0x08,
    0x03,
    0x96,
    0x05,
    0x06,
    0x05,
    0x04,
    0x00,
    0x04,
    0x05,
    0x00,
    0x05,
    0x08,
    0x03,
    0x95,
    0x05,
    0x06,
    0x05,
    0x04,
    0x00,
    0x04,
    0x05,
    0x00,
    0x05,
    0x08,
    0x03,
    0x94,
    0x05,
    0x06,
    0x00,
    0x00,
    0x05,
    0x04,
    0x00,
    0x04,
    0x05,
    0x00,
    0x05,
    0x08,
    0x03,
    0x93,
    0x05,
    0x06,
    0x00,
    0x00,
    0x05,
    0x04,
    0x00,
    0x04,
    0x05,
    0x00,
    0x05,
    0x08,
    0x03,
    0x92,
    0x05,
    0x06,
    0x05,
    0x04,
    0x00,
    0x04,
    0x05,
    0x00,
    0x05,
    0x08,
    0x03,
    0x91,
    0x05,
    0x06,
    0x05,
    0x04,
    0x00,
    0x04,
    0x05,
    0x00,
    0x05,
    0x08,
    0x03,
    0x90,
    0x05,
    0x06,
    0x05,
    0x04,
    0x00,
    0x04,
    0x05,
    0x00,
    0x05,
    0x08,
    0x02,
    0x90,
    0x05,
    0x06,
    0x00,
    0xff,
    0x04,
    0x20,
    0x05,
    0x06,
    0x08,
    0x84,
    0x04,
    0x04,
    0x00,
    0xff,
    0x08,
    0x72,
    0x04,
    0x0c,
    0x04,
    0x04,
    0x00,
    0xff,
    0x04,
    0x45,
    0x04,
    0x54,
    0x08,
    0x72,
    0x00,
    0xff,
    0x04,
    0x20,
    0x05,
    0x06,
    0x08,
    0x96,
    0x08,
    0x5e,
    0x00,
    0xff,
    0x04,
    0x20,
    0x05,
    0x06,
    0x08,
    0x96,
    0x08,
    0x5c,
    0x00,
    0xff,
    0x04,
    0x20,
    0x05,
    0x06,
    0x08,
    0x84,
    0x08,
    0x70,
    0x00,
    0xff,
    0x00,
    0xff,
    0x00,
    0xff,
    'w', 14, 0x70, 0x0, 0x1f,
    0xdf,
    0xaa,
    0xdf,
    0x02,
    0x00,
    0x01,
    0x80,
    0x02,
    0x00,
    0x04,
    0x00,
    'w', 4, 0x70, 0xE, 0x00,
    0x60,
    'w', 10, 0x70, 0x1A, 0x02,
    0x00,
    0x01,
    0x80,
    0x02,
    0x00,
    0x04,
    0x00,
    'w', 4, 0x70, 0x24, 0x00,
    0x60,
    'w', 3, 0x70, 0x40, 0x3c,
    'w', 4, 0x70, 0x43, 0x04,
    0x01,
    'w', 9, 0x70, 0x47, 0x00,
    0x00,
    0x02,
    0x02,
    0x00,
    0x01,
    0x00,
    'w', 3, 0x70, 0x7C, 0x3c,
    'w', 4, 0x70, 0x7F, 0x04,
    0x01,
    'w', 9, 0x70, 0x83, 0x00,
    0x01,
    0x03,
    0x02,
    0x40,
    0x01,
    0x20,
    'w', 4, 0x70, 0xB8, 0x03,
    0x98,
    'w', 4, 0x70, 0xBC, 0x00,
    0x80,
    'w', 8, 0x70, 0xC0, 0x00,
    0x02,
    0x02,
    0x00,
    0x01,
    0x00,
    'w', 10, 0x70, 0xE4, 0x10,
    0x00,
    0x00,
    0x00,
    0x10,
    0x00,
    0x00,
    0x00,
    'w', 10, 0x70, 0xEB, 0x00,
    0xfd,
    0x00,
    0x00,
    0x00,
    0xfd,
    0x00,
    0x00,
    'e',
};

static const unsigned char ov10640_raw12_comp_1280x800_emb[]={
    'w', 22, 0x30, 0x74, 0x0,
    0x0,
    0x0,
    0x8e,
    0x5,
    0x7,
    0x3,
    0xb5,
    0x5,
    0x0,
    0x3,
    0x24,
    0x5,
    0xad,
    0x3,
    0x3a,
    0x0,
    0x4,
    0x0,
    0x4,
    'w', 3, 0x30, 0x8A, 0x0,
    'w', 3, 0x30, 0x8C, 0xb3,
    'w', 3, 0x30, 0x8F, 0x10,
    'w', 3, 0x30, 0x91, 0x0c,
    'w', 3, 0x31, 0x19, 0x4,
    'w', 3, 0x31, 0x27, 0x47, /* Bug 1622850: Disable DPC */
    'w', 3, 0x34, 0x44, 0x48,
    'e',
};

static const unsigned char ov10640_raw12_comp_1280x1080_emb[]= {
    'w', 22, 0x30, 0x74, 0x0,
    0x0,
    0x0,
    0x2,
    0x5,
    0x7,
    0x4,
    0x41,
    0x5,
    0x0,
    0x4,
    0x3c,
    0x5,
    0xe3,
    0x4,
    0x52,
    0x0,
    0x4,
    0x0,
    0x2,
    'w', 3, 0x30, 0x8F, 0x10,
    'w', 3, 0x30, 0x91, 0x0c,
    'w', 3, 0x31, 0x19, 0x44,
    'w', 3, 0x31, 0x27, 0x47, /* Bug 1622840 : Disable DPC */
    'w', 3, 0x34, 0x44, 0x48,
    'e'
};

static const unsigned char ov10640_enable_streaming[]= {
    3, 0x30, 0x12, 0x01,
};

static const unsigned char ov10640_raw12_1280x800_osc24_pll_setting[] = {
    'w', 5, 0x30, 0x0, 0x3,
    0x24,
    0x7,
    'w', 5, 0x30, 0x4, 0x3,
    0x24,
    0x7,
    'e'
};

static const unsigned char ov10640_raw12_1280x800_osc25_pll_setting[] = {
    'w', 5, 0x30, 0x0, 0x2,
    0x23,
    0x7,
    'w', 5, 0x30, 0x4, 0x2,
    0x23,
    0x7,
    'e'
};

static const unsigned char ov10640_raw12_1280x1080_osc24_pll_setting[] = {
    'w', 5, 0x30, 0x0, 0x3,
    0x32,
    0x7,
    'w', 5, 0x30, 0x4, 0x3,
    0x32,
    0x7,
    'e'
};

static const unsigned char ov10640_raw12_1280x1080_osc25_pll_setting[] = {
    'w', 5, 0x30, 0x0, 0x2,
    0x28,
    0x9,
    'w', 5, 0x30, 0x4, 0x2,
    0x28,
    0x9,
    'e'
};

const unsigned char *ov10640_pll_settings[ISC_OV10640_NUM_CLK_SRC][ISC_CONFIG_OV10640_NUM_SENSOR_SETTING] = {
   {
       ov10640_raw12_1280x800_osc24_pll_setting,
       ov10640_raw12_1280x1080_osc24_pll_setting
   },
   {
       ov10640_raw12_1280x800_osc25_pll_setting,
       ov10640_raw12_1280x1080_osc25_pll_setting
   }
};

const unsigned char *ov10640_settings[ISC_CONFIG_OV10640_NUM_SENSOR_SETTING] = {
    /* Index 0 : RAW12 COMP 1280x800 */
    ov10640_raw12_comp_1280x800_emb,
    /* Index 1 : RAW12 COMP 1280x1080 */
    ov10640_raw12_comp_1280x1080_emb
};

#endif /* _OV10640_SETTING_H_ */
